package com.example.boot.bean;

import com.sun.org.apache.regexp.internal.RE;
import lombok.val;


public enum Type {
    ADVICE(1), REFUND(2), TIMING(3),OTHER(4),RECHARGE(5),LIVE(6);


    private int value;

    private Type(int value){
        this.value = value;
    }


    public int  getValue(){
        return value;
    }

    public static String type(int value) {
        for (Type type:Type.values()) {
            if (value == type.getValue()) {
                return String.valueOf(type);
            }
        }
    return null;
    }




}
